package br.com.monitor.gui;
import br.com.monitor.gui.FormularioLogin;

import javax.swing.JFrame;

import br.com.monitor.dao.Sistema;

@SuppressWarnings("serial")
public class FormularioPrincipal extends javax.swing.JPanel {
	
	private Sistema sistema;
	
	private JFrame telaPrincipal;
	
	public FormularioPrincipal(Sistema sistema) {
		this.sistema = sistema;
		iniciaComponentes();
	}
	
	private void iniciaComponentes() {
		try{
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
			javax.swing.SwingUtilities.updateComponentTreeUI(this);
		}catch(Exception e){
		}
		
		try {
			telaPrincipal.add(new FormularioLogin(telaPrincipal, sistema));		
		} catch (Exception e) {

		}
	}

}